Optimal. Leaf size=46 \[ \frac {x}{a}-\frac {\sqrt {b} \tan ^{-1}\left (\frac {\sqrt {a+b} \tan (c+d x)}{\sqrt {b}}\right )}{a d \sqrt {a+b}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 46, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {4127, 3181, 205} \[ \frac {x}{a}-\frac {\sqrt {b} \tan ^{-1}\left (\frac {\sqrt {a+b} \tan (c+d x)}{\sqrt {b}}\right )}{a d \sqrt {a+b}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rule 3181
Rule 4127
Rubi steps
\begin {align*} \int \frac {1}{a+b \csc ^2(c+d x)} \, dx &=\frac {x}{a}-\frac {b \int \frac {1}{b+a \sin ^2(c+d x)} \, dx}{a}\\ &=\frac {x}{a}-\frac {b \operatorname {Subst}\left (\int \frac {1}{b+(a+b) x^2} \, dx,x,\tan (c+d x)\right )}{a d}\\ &=\frac {x}{a}-\frac {\sqrt {b} \tan ^{-1}\left (\frac {\sqrt {a+b} \tan (c+d x)}{\sqrt {b}}\right )}{a \sqrt {a+b} d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.21, size = 46, normalized size = 1.00 \[ \frac {-\frac {\sqrt {b} \tan ^{-1}\left (\frac {\sqrt {a+b} \tan (c+d x)}{\sqrt {b}}\right )}{\sqrt {a+b}}+c+d x}{a d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.45, size = 260, normalized size = 5.65 \[ \left [\frac {4 \, d x + \sqrt {-\frac {b}{a + b}} \log \left (\frac {{\left (a^{2} + 8 \, a b + 8 \, b^{2}\right )} \cos \left (d x + c\right )^{4} - 2 \, {\left (a^{2} + 5 \, a b + 4 \, b^{2}\right )} \cos \left (d x + c\right )^{2} + 4 \, {\left ({\left (a^{2} + 3 \, a b + 2 \, b^{2}\right )} \cos \left (d x + c\right )^{3} - {\left (a^{2} + 2 \, a b + b^{2}\right )} \cos \left (d x + c\right )\right )} \sqrt {-\frac {b}{a + b}} \sin \left (d x + c\right ) + a^{2} + 2 \, a b + b^{2}}{a^{2} \cos \left (d x + c\right )^{4} - 2 \, {\left (a^{2} + a b\right )} \cos \left (d x + c\right )^{2} + a^{2} + 2 \, a b + b^{2}}\right )}{4 \, a d}, \frac {2 \, d x + \sqrt {\frac {b}{a + b}} \arctan \left (\frac {{\left ({\left (a + 2 \, b\right )} \cos \left (d x + c\right )^{2} - a - b\right )} \sqrt {\frac {b}{a + b}}}{2 \, b \cos \left (d x + c\right ) \sin \left (d x + c\right )}\right )}{2 \, a d}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.59, size = 81, normalized size = 1.76 \[ -\frac {\frac {{\left (\pi \left \lfloor \frac {d x + c}{\pi } + \frac {1}{2} \right \rfloor \mathrm {sgn}\left (2 \, a + 2 \, b\right ) + \arctan \left (\frac {a \tan \left (d x + c\right ) + b \tan \left (d x + c\right )}{\sqrt {a b + b^{2}}}\right )\right )} b}{\sqrt {a b + b^{2}} a} - \frac {d x + c}{a}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.61, size = 50, normalized size = 1.09 \[ -\frac {b \arctan \left (\frac {\left (a +b \right ) \tan \left (d x +c \right )}{\sqrt {\left (a +b \right ) b}}\right )}{d a \sqrt {\left (a +b \right ) b}}+\frac {\arctan \left (\tan \left (d x +c \right )\right )}{d a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.46, size = 46, normalized size = 1.00 \[ -\frac {\frac {b \arctan \left (\frac {{\left (a + b\right )} \tan \left (d x + c\right )}{\sqrt {{\left (a + b\right )} b}}\right )}{\sqrt {{\left (a + b\right )} b} a} - \frac {d x + c}{a}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.25, size = 104, normalized size = 2.26 \[ \frac {\mathrm {atan}\left (\frac {2\,a\,b^2\,\mathrm {tan}\left (c+d\,x\right )}{2\,a^2\,b+2\,a\,b^2}+\frac {2\,a^2\,b\,\mathrm {tan}\left (c+d\,x\right )}{2\,a^2\,b+2\,a\,b^2}\right )}{a\,d}+\frac {\mathrm {atanh}\left (\frac {\mathrm {tan}\left (c+d\,x\right )\,\sqrt {-b\,\left (a+b\right )}}{b}\right )\,\sqrt {-b\,\left (a+b\right )}}{d\,\left (a^2+b\,a\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{a + b \csc ^{2}{\left (c + d x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________